package com.java.domain.event;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import com.java.domain.ActivityCourse;
import com.java.domain.ActivityRoom;
import com.java.domain.ActivitySite;
import com.java.domain.ActivitySport;
/**
* @ClassName: ActivitySport
* @Description: activity_sport Db Table To : Sport Info行为执行类
* @author admin
* @date 2024-04-16
 */
public class ActivitySportEvent extends ActivitySport{

	@JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
	private Date sportPublishTime;
	
	@JsonFormat(pattern = "yyyy-MM-dd HH:mm",timezone = "GMT+8")
	private Date sportTime;
	
	private String typeString;
	
	private ActivityRoom room;
	
	private ActivitySite site;
	
	private ActivityCourse course;
	
	public ActivitySportEvent() {
		super();
	}

	public String getTypeString() {
		if(this.getSportType() == 0) {
			typeString = "Room";
		}else {
			typeString = "Site";
		}
		return typeString;
	}

	public ActivityRoom getRoom() {
		return room;
	}

	public void setRoom(ActivityRoom room) {
		this.room = room;
	}

	public ActivitySite getSite() {
		return site;
	}

	public void setSite(ActivitySite site) {
		this.site = site;
	}

	public ActivityCourse getCourse() {
		return course;
	}

	public void setCourse(ActivityCourse course) {
		this.course = course;
	}
	
}